package com.yfbao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.yfbao.config.FieldEncrypt;
import lombok.Data;
import java.util.Date;

@Data
@TableName("user")
public class UserDto {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField(value = "username")
    private String username;
    @TableField(value = "phone")
    @FieldEncrypt
    private String phone;
    @TableField(value = "email")
    @FieldEncrypt
    private String email;
    @TableField(value = "id_card")
    @FieldEncrypt
    private String idCard;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
}
